//
//  SSNullView.swift
//  拾舍清洁
//
//  Created by sky.wei on 2023/3/29.
//

import UIKit

class SSNullView: UIView {
    
    var imageV = UIImageView()
    var textLab = UILabel()
    

    override init(frame: CGRect) {
        super.init(frame: frame)
        setupViews()
    }
    
    required init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    func setupViews() {
        let imageV = UIImageView()
        imageV.image = UIImage(named: "null_image")
        imageV.frame = CGRect(x: (frame.width - 142)/2 , y: 0, width: 142, height: 87)
        addSubview(imageV)
        self.imageV = imageV
        
        let textLab = UILabel()
        textLab.frame = CGRect(x: 0, y: imageV.frame.maxY + 16, width: frame.width, height: 32)
        textLab.textAlignment = .center
        textLab.textColor = UIColor.init(hex: "#103573")
        textLab.font = Font14
        textLab.text = "暂无数据"
        addSubview(textLab)
        self.textLab = textLab
        
        
    }
}
